
package DBLayer;
import ModelLayer.Company;

/**
 * @version 12/22/2011
 * @author Gruppe 4
 */

public interface IFDBCompany 
{
    /**
     * Method to find a company from the database
     * @param companyId int companyId the id of the company
     * @return Returns a company object
     */
    public Company searchCompanyById(int companyId);
    
    /**
     * Method to insert a Company object into the database
     * @param companyObj an Object of the type Company
     * @return returns an int 1 if the method succedes and -1 if the method fails
     */
    public int insertCompany(Company companyObj);
    
    /**
     * Method to update a Company in the database;
     * @param companyObj an Object of the type Company
     * @return returns an int 1 if the method succedes and -1 if the method fails
     */
    public int updateCompany(Company companyObj);
    
    /**
     * Method to delete a Company from the database
     * @param companyId int companyId the id of the company
     * @return returns an int 1 if the method succedes and -1 if the method fails
     */
    public int deleteCompany(int companyId);
}